home *** CD-ROM | disk | FTP | other *** search
- Path: jpmorgan.com!usenet
- From: O Peck FI RES <peck_oliver@jpmorgan.com>
- Newsgroups: comp.lang.c++
- Subject: SPARCompiler C++ & shared libraries
- Date: Mon, 12 Feb 1996 09:21:46 +0000
- Organization: JP Morgan
- Message-ID: <311F06AA.41C67EA6@jpmorgan.com>
- NNTP-Posting-Host: gm-fitrades4.uk.jpmorgan.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (X11; I; SunOS 4.1.3_U1 sun4m)
-
- I am having several problems building shared libraries using v4.0.1
- of the Sparcworks C++ compiler on SunOS 4.1.3_U1.
-
- 1) What is the purpose of the .sa files that get created? They do
- not seem to be used when I am linking executables.
-
- 2) When static data is initialised in the shared library, the executable
- does not seem to recognise this. I have read the section of the
- Library Reference Manual about using
-
- -u __init_lib_
-
- or
-
- extern int _init_foo_;
- static int __dumyy_foo = _init_foo_;
-
- but none of this is clear or seems to work.
-
- Can anyone help please?
-
- Oliver
-